package com.wave.common.model;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;


@Data
public class BaseEntity {

    @Id(keyType = KeyType.Generator, comment = "主键", value = KeyGenerators.snowFlakeId)
    private Long id;

    @Column(value = "createTime", comment = "创建时间")
    private String createTime;

    @Column(value = "createUser", comment = "创建人")
    private Long createUser;

    @Column(value = "updateTime", comment = "更新时间")
    private String updateTime;

    @Column(value = "updateUser", comment = "更新人")
    private Long updateUser;

    @Column(value = "remark", comment = "备注")
    private String remark;

    @Column(value = "isDeleted", comment = "是否删除(0-未删, 1-已删)", isLogicDelete = true)
    private Integer isDeleted;

}
